package com.shiguiwu.springmybatis.designpattern.observe.event.listener;

import com.shiguiwu.springmybatis.designpattern.observe.LotteryResult;
import lombok.extern.slf4j.Slf4j;

/**
 * @description: 短信消息事件
 * @author: stone
 * @date: Created by 2021/9/3 15:06
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.observe.event.listener
 */
@Slf4j
public class MessageEventListener implements EventListener {
    @Override
    public void onEvent(LotteryResult lotteryResult) {
        log.info("给用户===>{}，发送短信消息 ===>{}", lotteryResult.getUserId(), lotteryResult.getLottery());

    }
}
